import request from '@/utils/request'

// 查询智能合同审批列表
export function listSyOaContract(query) {
  return request({
    url: '/module/SyOaContract/list',
    method: 'get',
    params: query
  })
}

// 查询智能合同审批详细
export function getSyOaContract(id) {
  return request({
    url: '/module/SyOaContract/' + id,
    method: 'get'
  })
}

// 新增智能合同审批
export function addSyOaContract(data) {
  return request({
    url: '/module/SyOaContract',
    method: 'post',
    data: data
  })
}

// 修改智能合同审批
export function updateSyOaContract(data) {
  return request({
    url: '/module/SyOaContract',
    method: 'put',
    data: data
  })
}

// 删除智能合同审批
export function delSyOaContract(id) {
  return request({
    url: '/module/SyOaContract/' + id,
    method: 'delete'
  })
}
